import { request } from './request.js'

export default {
  // 我的卡券
  couponList: function (params) {
    return request('coupon/my', params)
  },
  // 下单优惠券
  coupon: function (params) {
    return request('coupon/use/list', params)
  },
  // 未提货商品券
  couponGoods: function (params) {
    return request('coupon/goods', params)
  },
  // 已提货商品券
  couponGoodsDelivered: function (params) {
    return request('coupon/goods/delivered', params)
  },
  // 优惠券
  couponDiscounts: function (params) {
    return request('coupon/discounts', params)
  },
  // 用户卡券余额
  getCouponBalance: function (params) {
    return request('coupon/balance', params)
  },
}